package com.bird.server.solo;

import com.bird.domain.dto.Result;
import com.bird.domain.entity.ShopCategory;

import java.util.List;

/**
 * @Author: sijunqiang
 * @Date: 2020/3/29 17:18
 * @Description: 商品类别的接口
 */
public interface ShopCategoryService {

    /**
     * 添加商品类别信息
     *
     * @param shopCategory
     * @return
     */
    Result<Boolean> addShopCategory(ShopCategory shopCategory);

    /**
     * 根据id删除商品信息
     *
     * @param shopCategoryId
     * @return
     */
    Result<Boolean> removeShopCategory(int shopCategoryId);

    /**
     * 修改商品信息
     *
     * @param shopCategory
     * @return
     */
    Result<Boolean> modifyShopCategory(ShopCategory shopCategory);


    /**
     * 根据商品的id查询商品的信息
     *
     * @param shopCategoryId
     * @return
     */
    Result<ShopCategory> queryShopCategoryById(int shopCategoryId);


    /**
     * 查询商品的列表信息并分页
     *
     * @param shopCategoryCondition
     * @param pageIndex
     * @param pageSize
     * @return
     */
    Result<List<ShopCategory>> queryShopCategory(ShopCategory shopCategoryCondition, int pageIndex, int pageSize);
}
